using System;
using System.ComponentModel.DataAnnotations;

namespace DDD.Infra.CrossCutting.Identity.Models;

public class RefreshToken
{
    [Key]
    public string Token { get; set; }

    public string JwtId { get; set; }

    public DateTime CreationDate { get; set; }

    public DateTime ExpiryDate { get; set; }

    public bool Used { get; set; }

    public bool Invalidated { get; set; }

    public string UserId { get; set; }

    // [ForeignKey(nameof(UserId))]
    // public ApplicationUser User { get; set; }
}
